package com.sc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.sc.domain.Repair;
import com.sc.dto.RepairDateDTO;
import com.sc.dto.RepairPageDTO;
import com.sc.result.PageResult;
import com.sc.vo.RepairVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;


@Mapper
public interface RepairMapper extends BaseMapper<Repair> {
    /**
     * 分页查询
     *
     * @param repairPageDTO
     * @return
     */
    Page<RepairVO> pageQuery(RepairPageDTO repairPageDTO);

    /**
     * 查询近期报修记录
     *
     * @param repairDateDTO 查询条件
     * @return 分页结果
     */
    List<RepairVO> queryRepairData(RepairDateDTO repairDateDTO);
}
